<?php


namespace app\agent\controller\agent;

use app\agent\controller\Controller;
use app\agent\model\agent\Agent as AgentModel;
use app\agent\model\wxapp\Wxapp as WxappModel;
use app\common\model\store\Shop as StoreShopModel;
use app\admin\model\store\User as StoreUserModel;
use think\App;
use think\Db;
use think\Session;
/*
 * 统计
 */

class Statistics extends Controller{
    /**
     * 商户首页
     */
    public function index(){
        $session = Session::get('yoshop_agent');
        $agent_id = $session['agent']['agent_id'];
        $model = new WxappModel;
        //$list = $model->getList(0);
        return $this->fetch('index', [
            'list' => $list = $model->getList(0,$agent_id),
        ]);
    }
}